<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/resources/script/fullcalendar-3.0.1/lib/jquery.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		var id = parent.layer.getFrameIndex(window.name);
		$("#closeIframe").click(function() {
			parent.layer.close(id);
		});
	})
</script>
<style type="text/css">
button, input {
	border: 1px solid #999;
	padding: 5px 5px;
	min-width: 60px;
}

button {
	cursor: pointer;
}

.error {
	color: #ff0000;
	font-style: italic;
	font-weight: bold;
	font-size: 14px;
	font-family: 幼圆;
}
</style>
</head>
<body>
	<div style="margin: 0 auto;">
		<sf:form
			action="${ pageContext.request.contextPath }/${roler}/saveroom"
			commandName="room" method="post"
			cssStyle="margin: 0 auto;display: table;">
			<table>
				<tr>
					<td>名称：</td>
					<td><sf:input path="roomName" />&nbsp;&nbsp;<label
						class="error"><c:out
								value="${ errors.getFieldError('roomName').getDefaultMessage() }"></c:out>
					</label></td>
				</tr>
				<tr style="height: 1em;">
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td>房间号码：</td>
					<td><sf:input path="roomNumber" />&nbsp;&nbsp;<label
						class="error"><c:out
								value="${ errors.getFieldError('roomNumber').getDefaultMessage() }"></c:out>
					</label></td>
				</tr>
				<tr style="height: 1em;">
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td style="vertical-align: top;">备注：</td>
					<td><sf:textarea path="equipment"
							cssStyle="width:200px; height:100px;" /></td>
				</tr>
				<tr style="height: 1em;">
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td colspan="2"><div align="center">
							<input type="submit" value="确定">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input id="closeIframe" type="button" value="取消">
						</div></td>
				</tr>
			</table>
		</sf:form>
	</div>

</body>
</html>